//
//  EditVideoViewController.h
//  OntheRoadV4
//
//  Created by ZhangYanhua on 15/3/3.
//  Copyright (c) 2015年 EricHuang. All rights reserved.
//


#import <AVFoundation/AVFoundation.h>
#import "ImageAsset.h"
#import "TopAlignmentCollectionViewFlowLayout.h"
#import "SelectVideoClipView.h"
#import "EditVideoHelpers.h"

#define MAX_WHOLE_VIDEO_DURATION    (10 * 60)
#define MAX_VIDEO_DURATION          30.0f
#define MIN_VIDEO_DURATION          3.0f

@protocol EditVideoViewControllerDelegate <NSObject>

- (void)didFinishEditVideoWithInfoDict:(NSDictionary *)infoDict;

@end

@interface EditVideoViewController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, SelectVideoClipViewDelegate, EditVideoHelpersDelegate, UIActionSheetDelegate>


@property (nonatomic, weak) id<EditVideoViewControllerDelegate> delegate;

@property (weak, nonatomic) IBOutlet UIView *headerView;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *doneBtn;
@property (weak, nonatomic) IBOutlet UILabel *navTitleLabel;
@property (weak, nonatomic) IBOutlet UIView *videoContainerView;
@property (weak, nonatomic) IBOutlet UIImageView *videoPlayIcon;
@property (weak, nonatomic) IBOutlet UIView *footerView;
@property (weak, nonatomic) IBOutlet UICollectionView *thumbnailCollectionView;
@property (weak, nonatomic) IBOutlet TopAlignmentCollectionViewFlowLayout *collectionViewLayout;

- (id)initWithAsset:(ImageAsset *)imgAsset;

@end
